package com.wzh.yuvwater.muxer;

import android.media.MediaCodec;

import java.nio.ByteBuffer;

/**
 * 封装需要传输的数据类型
 */
public class MuxerData {
    private int trackIndex;
    private ByteBuffer byteBuf;
    private MediaCodec.BufferInfo bufferInfo;

    public MuxerData() {
    }

    public MuxerData(int trackIndex, ByteBuffer byteBuf, MediaCodec.BufferInfo bufferInfo) {
        this.trackIndex = trackIndex;
        this.byteBuf = byteBuf;
        this.bufferInfo = bufferInfo;
    }

    public int getTrackIndex() {
        return trackIndex;
    }

    public void setTrackIndex(int trackIndex) {
        this.trackIndex = trackIndex;
    }

    public ByteBuffer getByteBuf() {
        return byteBuf;
    }

    public void setByteBuf(ByteBuffer byteBuf) {
        this.byteBuf = byteBuf;
    }

    public MediaCodec.BufferInfo getBufferInfo() {
        return bufferInfo;
    }

    public void setBufferInfo(MediaCodec.BufferInfo bufferInfo) {
        this.bufferInfo = bufferInfo;
    }
}